<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="java.lang.js"></script>
<script type="text/javascript" src="java.util.js"></script>
<script type="text/javascript" src="java.text.js"></script>
<script type="text/javascript">
System.out.print("file.encoding:"+System.getProperty("file.encoding"));
System.out.print("file.separator:"+System.getProperty("file.separator"));

System.out.print("java.class.path:"+System.getProperty("java.class.path"));
System.out.print("java.version:"+System.getProperty("java.version"));
System.out.print("java.vendor.url:"+System.getProperty("java.vendor.url"));
System.out.print("java.vendor.url.bug:"+System.getProperty("java.vendor.url.bug"));

System.out.print("line.separator:"+System.getProperty("line.separator"));

System.out.print("os.arch:"+System.getProperty("os.arch"));
System.out.print("os.name:"+System.getProperty("os.name"));
System.out.print("os.vendor:"+System.getProperty("os.vendor"));
System.out.print("os.version:"+System.getProperty("os.version"));

System.out.print("path.separator:"+System.getProperty("path.separator"));

System.out.print("user.language:"+System.getProperty("user.language"));
System.out.print("user.timezone:"+System.getProperty("user.timezone"));

System.out.print("browser:"+System.getProperty("browser"));
System.out.print("browser.version:"+System.getProperty("browser.version"));
System.out.print("browser.vendor:"+System.getProperty("browser.vendor"));

var format=new java.text.SimpleDateFormat("EEE, MMM d, yyyy");
System.out.print(format.format(new Date()).toString());

function ClassA(param){
	var privateProperty = param;
	this.publicMethod = function(){return privateProperty};
}

function ClassB(b){
	this.extend(ClassA);
}

var b=new ClassB("param1");
System.out.print("ClassB.publicMethod(): " + b.publicMethod());


try {
	throw new RuntimeException("test RuntimeException");
} catch(e) {
	System.out.print(e.getMessage());
}

var a="test String";
System.out.print("String.equals('test'): " + a.equals("test"));
System.out.print("String.startsWith('test'): " + a.startsWith("test"));
System.out.print("String.endsWith('tring'): " + a.endsWith("tring"));
System.out.print("String.replaceFirst('test','Test'): " + a.replaceFirst("test","Test"));
System.out.print("String.replaceAll('test',' Test'): " + a.replaceAll("test"," Test"));
System.out.print("String.trim(): " + a.trim());

var b=new StringBuffer("test StringBuffer");
System.out.print(b.append(" test StringBuffer.append").toString());
System.out.print("StringBuffer.length(): " + b.length());
System.out.print("StringBuffer.charAt(1): " + b.charAt(1));
System.out.print("StringBuffer.toString(): " + b.toString());
System.out.print("StringBuffer.substring(1,3): " + b.substring(1,3));

var a=new java.util.ArrayList("a");
System.out.print("ArrayList.add('b'): " + a.add("b"));
System.out.print("ArrayList.toString(): " + a.toString());
</script>
</head>
<body></body>
</html>